<?php
	// 加载公共文件
	include_once('../../public/config/sql.php');
	include_once('../../public/config/config.php');


	// 接收pose传值
	$users = isset($_POST['value']) ? $_POST['value'] : '';
	$table = isset($_POST['table']) ? $_POST['table'] : '';

	$obj = new sql($info);

	$sql = "select username from {$table} where username=?";
	
	$rows = $obj->db_select_affect($sql, $users);


	header('Content-Type', 'application/json');
	echo json_encode($rows);
?>